/*
 * Teknei 2014 - All rights reserved
 */
package com.teknei.acabus.core.entities;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the "TABLE_C" database table.
 * @author Jorge Amaro
 * @version 1.0
 * @since 1.0
 * 
 */
@Entity
@Table(name="\"SITM_TABLE_C\"")
@NamedQuery(name="TableC.findAll", query="SELECT t FROM TableC t")
public class TableC implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="TABLE_CIDFIELD_GENERATOR", sequenceName="\"TABLE_C_ID_FIELD_SEQ\"", allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="TABLE_CIDFIELD_GENERATOR")
	@Column(name="id_field")
	private Integer idField;

	private String description;

	private String value;

	//bi-directional many-to-one association to TableA
	@ManyToOne
	@JoinColumn(name="id_field_a")
	private TableA tableA;

	//bi-directional many-to-one association to TableB
	@ManyToOne
	@JoinColumn(name="id_field_b")
	private TableB tableB;

	/**
	 * 
	 */
	public TableC() {
	}

	/**
	 * @return
	 */
	public Integer getIdField() {
		return this.idField;
	}

	/**
	 * @param idField
	 */
	public void setIdField(Integer idField) {
		this.idField = idField;
	}

	/**
	 * @return
	 */
	public String getDescription() {
		return this.description;
	}

	/**
	 * @param description
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return
	 */
	public String getValue() {
		return this.value;
	}

	/**
	 * @param value
	 */
	public void setValue(String value) {
		this.value = value;
	}

	/**
	 * @return
	 */
	public TableA getTableA() {
		return this.tableA;
	}

	/**
	 * @param tableA
	 */
	public void setTableA(TableA tableA) {
		this.tableA = tableA;
	}

	/**
	 * @return
	 */
	public TableB getTableB() {
		return this.tableB;
	}

	/**
	 * @param tableB
	 */
	public void setTableB(TableB tableB) {
		this.tableB = tableB;
	}

}